package com.yuqiao.read.design.factory2;

public class PizzaTestDrive {
    public static void main(String[] args) {
        PizzaStore pizzaStore = new NYPizzaStore();
        PizzaStore chiPizzaStore = new ChiCaGoPizzaStore();
        Pizza pizza = pizzaStore.orderPizza("cheese");
        System.out.println("name = [" + pizza.getName() + "]");
        Pizza pizza1 = chiPizzaStore.orderPizza("cheese");
        System.out.println("name2 = [" + pizza1.getName() + "]");
    }
}
